package com.music.wangyi.Bean

data class CommonReponse<T>(
    val updateTime:String,
    val data:T?,
    val hasMore:Boolean?,
    val code:Int
)

/*数据解析扩展函数*/
fun <T> CommonReponse<T>.dataConvert(): T {
    if (code == 200) {
        return data!!
    } else {
        throw Exception("发生错误")
    }
}